package com.itsu.vtalk.util;

import javax.servlet.http.HttpServletRequest;

/**
 * @author suben
 * @createtime 2020/6/21 10:57
 **/
public class ServletUtil {

    private ServletUtil() {
    }

    public static boolean isAjax(HttpServletRequest request) {
        String xReq = request.getHeader("X-Requested-With");
        return "XMLHttpRequest".equals(xReq);
    }
}
